import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/Home'
import Login from '@/components/Login'
import CateMana from '@/components/CateMana'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login
    },
    {
      path: '/home',
      name: '',
      component: Home,
      children:[{
        path: '/cateMana',
        name: '栏目管理',
        component: CateMana
      }]
    }
  ]
})
